﻿using System.ComponentModel.Composition;
using WafApplication1.Applications.Services;
using WafApplication1.Applications.ViewModels;

namespace WafApplication1.Applications.Controllers
{
    [Export]
    internal class PageViewController
    {
        private readonly IShellService shellService;
        private readonly PageViewModel pageViewModel;

        [ImportingConstructor]
        public PageViewController(IShellService shellService, PageViewModel pageViewModel)
        {
            this.shellService = shellService;
            this.pageViewModel = pageViewModel;
        }

        public void Initialize()
        {
            shellService.PageView = pageViewModel.View;
        }

    }
}
